package com.zbkj.common.model.zfbadminregion;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName: ZfbAdminRegion
 * @Description: TODO
 * @Author: XXXX
 * @Date: 2024/7/28 12:49
 * @Version: V1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("zfb_admin_region")
public class ZfbAdminRegion implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @ApiModelProperty("管理员id")
    private Integer adminUserId;

    @ApiModelProperty(value = "省Id")
    private String provinceId;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市id")
    private String cityId;

    @ApiModelProperty(value = "市名称")
    private String cityName;


    @ApiModelProperty(value = "区/县id")
    private String districtId;

    @ApiModelProperty(value = "区/县名称")
    private String districtName;

    @ApiModelProperty(value = "镇/街道id")
    private String townId;

    @ApiModelProperty(value = "镇/街道名称")
    private String townName;


    @ApiModelProperty("村id")
    private String villageId;

    @ApiModelProperty(value = "村名称")
    private String villageName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("品牌商id")
    private Integer brandId;

}
